/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.mine.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.EducationBo;
import com.yiqi.liebang.entity.bo.WorkBo;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface EducationContract {

    interface Model {
        Observable<String> userAddEducation(
                String eduLogo,
                String schoolName,
                String subjectName,
                String diploma,
                String beginTime,
                String endTime,
                String eduDescribe);

        Observable<String> userEditEducation(
                String id,
                String eduLogo,
                String schoolName,
                String subjectName,
                String diploma,
                String beginTime,
                String endTime,
                String eduDescribe);

        Observable<EducationBo> userGetEducation(EducationBo workBo);

        Observable<String> userDeleteEducation(EducationBo workBo);
    }

    interface View extends BaseView {


        void showAddEducationSuccess();

        void showEducationSuccess(EducationBo workBo);

        void showError(String error);

    }


    interface Presenter extends BasePresenter {

        void userAddEducation(
                String eduLogo,
                String schoolName,
                String subjectName,
                String diploma,
                String beginTime,
                String endTime,
                String eduDescribe);

        void userEditEducation(
                String id,
                String eduLogo,
                String schoolName,
                String subjectName,
                String diploma,
                String beginTime,
                String endTime,
                String eduDescribe);

        void userGetEducation(String id);

        void userDeleteEducation(String id, int sign);
    }
}
